package org.example.call.controller;

import org.example.call.domain.SmbmsBill;
import org.example.call.feign.MybatisFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OpenFeignController {
    @Autowired
    private MybatisFeignClient mybatisFeignClient;

    @GetMapping("/callByFeign/{id}")
    public SmbmsBill callByFeign(@PathVariable("id") Long id) {
        return mybatisFeignClient.selectByPrimaryKey(id);
    }



}
